import request from '@/sheep/request';

const GenerateApi = {
  // 获得示例图片列表
  getEffectShow: () => {
    return request({
      url: '/sp/model/shows',
      method: 'GET',
      custom: {
        showLoading: false,
        showError: false,
      },
    });
  },
  // 文字生成图片
  getWordGenerate: (data) => {
    return request({
      url: '/sp/model/ai/text2imgages',
      method: 'POST',
	  data,
      custom: {
        showLoading: false,
        showError: false,
      },
    });
  },
  //根据生成后的图片获取要打印的3D模型
    getAiModel: (data) => {
      return request({
        url: '/sp/model/ai/image/preview',
        method: 'POST',
  	    data,
        custom: {
          showLoading: true,
          showError: false,
        },
      });
    },
	// 获取价格
	getModePrice: (id) => {
	  return request({
	    url: '/sp/model/sku',
	    method: 'GET',
		params: {
			deviceId: id
		},
	    custom: {
	      showLoading: false,
	      showError: false,
	    },
	  });
	},
};
export default GenerateApi;